package com.foo.demo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Map;
import java.util.Properties;
import java.util.Random;

/**
 * Created by Zetas on 2016/11/24.
 */
@Controller
public class GitController {

    @ResponseBody
    @RequestMapping("/git/info.htm")
    public Properties index() throws IOException {

        Properties properties = new Properties();
        properties.load(new InputStreamReader(getClass().getClassLoader().getResourceAsStream("git.properties"), "UTF-8"));

        return properties;
    }

}
